package com.xuecheng.content.controllor;

import com.example.content.model.pojo.CoursePublish;
import com.xuecheng.content.service.CoursePublishService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
public class CoursePublishControllor {
    @Resource
    CoursePublishService coursePublishService;
    @ResponseBody
    @ApiOperation("查询课程发布信息")
    @GetMapping("/r/coursepublish/{courseId}")
    public CoursePublish getCoursepublish(@PathVariable("courseId") Long courseId) {
        System.out.println("courseId = " + courseId);
        CoursePublish coursePublish = coursePublishService.getCoursePublish(courseId);
        return coursePublish;
    }
    @GetMapping("/list")
    public String getList(){
        return "你好呀";
    }



}
